package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.SetmealDto;
import com.itheima.pojo.Setmeal;
import com.itheima.result.R;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: 斌
 * @DateTime: 2023年02月07日  00:08:48
 * @Description: com.itheima.service
 * @Version: 1.0
 */
public interface SetmealDtoService extends IService<Setmeal> {
    R SetmealPage(Integer page, Integer pageSize, String name);

    R saveSetMeal(SetmealDto setmealDto);

    R querySetmeal(Long id);

    @Transactional
    R updateSetmeal(SetmealDto setmealDto);
    @Transactional
    R deleteSetmeal(List<Long> ids);

    @Transactional
    R updateSetmealStatus(Integer status, List<Long> ids);

    R setmealList(SetmealDto setmeal);

    R querySetmealDish(Long id);
}
